<?php




require 'database.php';

$base=new Db;



$type=$_POST['type'];

if($type=="category" || $type=="list"){
    $_____r_____=$base->doSql('select * from hkcms_model where type="more"');
}elseif($type=="link"){
    $_____r_____=$base->doSql('select * from hkcms_model where type="single"');
}

$data=[
    "rows"=>$_____r_____,
    "total"=>count($_____r_____),
    "code"=>200,
    "data"=>$_____r_____
];

return json($data);